import java.util.Arrays;

/**
 * Created with IntelliJ IDEA
 * Description:方法重载--整数除法，双精度类型除法
 * User:恋恋
 * Date:2022-09-01
 * Time:8:38
 */
public class Test {
    public static double div(double a,double b)
    {
        return a/b;
    }
    public static int div(int a,int b)
    {
        return a/b;
    }
    public static void main(String[] args) {
        double a = 3.4;
        double b = 2.0;
        int i = 2;
        int j = 3;
        System.out.println(div(a,b));
        System.out.println(div(i,j));

    }




//    public static void main(String[] args) {
//        int[] arr=new int[]{1,2,34,5,6,8};
//        System.out.println("传参之前arr："+Arrays.toString(arr));
//        print(arr);
//        System.out.println("传参之后arr："+Arrays.toString(arr));
//    }
//    public static void print(int[] arr)
//    {
//        arr[0]=10;
//    }
}
